// pages/balance/balance.js
Page({
  data: {},
  onLoad() {
    this._getData()
  },
  async _getData() {
    let { code, data } = await wx.requestAsync({
      url: '/account',
    })
    if (code == 0) {
      console.log(data)
      this.setData(data)
    }
  },
  _tolink() {
    wx.navigateTo({
      url: '/pages/rechargeamount/rechargeamount',
    })
  },
})
